<template>
  <div class="search-page">
    <van-nav-bar left-arrow @click-left="$router.go(-1)"
       class="btnBgc"/>
     <!-- 搜索框 -->
     <div class="search">
  <div class="city" @click="$router.push('/city')">
   广州<van-icon name="play" class="list" />
  </div>
  |<van-search
   class="ipt"
   v-model="value"
   placeholder="请输入小区或地址"
   @click='onSearch'
  />
  <van-dropdown-menu>
  <van-dropdown-item v-model="value1" :options="option1" />
  <van-dropdown-item v-model="value2" :options="option2" />
</van-dropdown-menu>
 </div>
  </div>
</template>

<script>
export default {
  name: 'search-page',
  data () {
    return {}
  },
  methods: {}
}
</script>

<style lang="less" scoped>

.link {
  color: #069;
  font-size: 12px;
  padding-left: 20px;
  float: left;
  padding-top:10px ;
}
.btnBgc {
  background-color: #1cb676;
  color: #fff;
}
// 顶部格式
.search {
    display: flex;
    z-index: 999;
position: absolute;
top: 5px;
left: 50%;
width: 320px;
height: 35px;
margin-left: -150px;
background-color:#fff;
border-radius: 3px;
line-height: 35px;
color: #ccc;
font-size: 20px;
.city{
  margin-left: 15px;
color:#333;
height: 35px;
line-height: 35px;font-size: 14px;
.list {
  font-size: 12px;color: #666;
transform: rotate(90deg);
}
}
  }
  .ipt {
    width: 200px;
height: 35px;
background-color:#fff;
input {
  background-color: #fff;
}
  }
  
.search-page {
  margin-bottom: 50px;
  // margin-top: 44px;
  .my-nav {
    height: 44px;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 999;
    background: #fff;
    display: flex;
    align-items: center;
    > a {
      color: #999;
      font-size: 14px;
      line-height: 44px;
      margin-left: 20px;
      position: relative;
      transition: all 0.3s;
      &::after {
        content: "";
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: 0;
        width: 0;
        height: 2px;
        background: #222;
        transition: all 0.3s;
      }
      &.active {
        color: #222;
        &::after {
          width: 14px;
        }
      }
    }
    .logo {
      flex: 1;
      display: flex;
      justify-content: flex-end;
      > img {
        width: 64px;
        height: 28px;
        display: block;
        margin-right: 10px;
      }
    }
  }
}
</style>
